<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet"  th:href="@{/css/register.css}">
    <title>注册</title>
</head>
<body>
<div class="container">
    <h2>注册</h2>
    <form id="RegisterForm" th:action="@{/register}" method="post"
          enctype="multipart/form-data" >
        <label for="username">用户名</label>
        <input type="text" id="username" name="username" required>
        <label for="password">密码</label>
        <input type="password" id="password" name="password" required>
        <span style="font-weight: bold">性别</span>
        <input type="radio"  name="sex" value="男" checked>男
        <input type="radio" name="sex" value="女" >女
        <label for="email">邮箱</label>
        <input type="email" id="email" name="email" required>
        <label for="tel">电话</label>
        <input type="tel" pattern="^[0-9]*$" placeholder="只能输入数字"
               id="tel" name="tel" required>
        <label for="photo">头像上传</label>
        <input type="file" accept="image/*" id="photo" name="photo" required >
        <label for="info">个人简介</label>
        <textarea id="info" name="info" required></textarea>
        <button type="submit" >注册</button>
    </form>
</div>
</body>
</html>


